Add more an1 road types, clarify docs
authorparkrrrr <parkrrrr@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 22 Sep 2005 17:13:56 +0000 (17:13 +0000)
committerparkrrrr <parkrrrr@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 22 Sep 2005 17:13:56 +0000 (17:13 +0000)
gpsbabel/README
gpsbabel/an1.c

index cba352a24090b16db708fded7b3b65105e1f42c2..683718ff29cbbbce037f7391431e90340c2b2df6 100644 (file)
@@ -953,7 +953,23 @@ THE FORMATS
         If you are creating a road layer, you may also use the "road" option,
         which allows you to change the types of roads based on their names.
         You can change multiple roads at the same time.  Currently supported
-        types are "limited", "toll", "us", "state", "major", and "local".
+        types are 
+
+          limited   Limited-access freeways
+          toll      Limited-access toll highways
+          ramp      Access ramps for limited-access highways
+          us        National highways (e.g. US routes)
+          primary   Primary State/Provincial routes
+          state     State/Provincial routes
+          major     Major Connectors
+          ferry     Ferry Routes
+          local     Local Roads
+          editable  User-drawn Roads
+
+        GPSBabel defaults to creating editable roads.  These are routed just 
+        like local roads, but may be edited with the drawing tools in Street 
+        Atlas.  
+
         This option has a special format that is best demonstrated by example:
 
         "road=I-599!limited!Beecher St.!major" 
@@ -961,8 +977,8 @@ THE FORMATS
         This option will cause any road named "I-599" to become a limited- 
         access highway and any road named "Beecher St." to become a major
         connector.  Note that roads that have had their types changed in 
-        this way might not be editable in Street Atlas, so make sure they
-        are where you want them before you change them, and make sure to keep
+        this way are not editable in Street Atlas, so make sure they are 
+        where you want them before you change them, and make sure to keep
         a backup of your original road layer.  Note that the ! is a shell 
         metacharacter in bash and possibly other shells, so you may have to 
         use single quotes or some other escape mechanism.
index d8e93ecf6f779e0fc7bbf7cd4729df140a2af49c..7ab321d3fcc19c046515b8a3b69efac2eb1004e9 100644 (file)
@@ -904,9 +904,25 @@ Parse_Change_Type( char *type ) {
        else if ( !case_ignore_strcmp( type, "state" )) {
                retval = 0x11070c10;
        }
+       else if ( !case_ignore_strcmp( type, "primary" )) {
+               /* primary state/provincial routes */
+               retval = 0x11070840;
+       }
        else if ( !case_ignore_strcmp( type, "major" )) {
                retval = 0x11070c30;
        }
+       else if ( !case_ignore_strcmp( type, "local" )) {
+               retval = 0x11071010;
+       }
+       else if ( !case_ignore_strcmp( type, "ramp" )) {
+               retval = 0x11070cb0;
+       }
+       else if ( !case_ignore_strcmp( type, "ferry" )) {
+               retval = 0x11070ca0;
+       }
+       else if ( !case_ignore_strcmp( type, "editable" )) {
+               retval = 0x11100541;
+       }
        else {
                fatal( MYNAME ": unknown road type for road changes\n" );
        }